import request from '@/utils/request'

export function findByPage(query) {
    return request({
      url: '/expenseType/findPage',
      method: 'get',
      params:query //表单数据
    })
  }
  
  export function findAllList() {
    return request({
      url: '/expenseType/findAllList',
      method: 'get'
    })
  }
  
  export function addExpenseType(data) {
    return request({
      url: '/expenseType/addExpenseType',
      method: 'post',
      data//json
    })
  }
  export function deleteExpenseType(typeId) {
    return request({
      url: '/expenseType/deleteById',
      method: 'get',
      params:{"typeId":typeId}//form
    })
  }  
  export function createType(typeAdd) {
    return request({
      url: '/expenseType/createType',
      method: 'get',
      params:{"typeAdd":typeAdd}//form
    })
  }
  export function updatExpenseType(data) {
    return request({
      url: '/expenseType/updatExpenseType',
      method: 'post',
      data
    })
  }